<template>
    <div>
        <hr>
        <h1>子传父</h1>
        <textarea cols="30" rows="10" :value="msg">
        </textarea>
        <button @click="commit">确认收到</button>
    </div>
</template>

<script>
    export default{
        props:['msg'],
        methods:{
            commit(){
                this.$emit('comfire','收到'+this.msg+'!!!');
            }
        }
    }
</script>